# -*- coding: utf-8 -*-
# @Time    : {{time}}
# @Author  : {{tester}}
import allure
import pytest
import sys
import os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')))
import module.globals as gbl


@allure.epic("{{epic}}")
@allure.feature("{{feature}}")
class {{class_name}}(object):
    """
    测试标题: {{title}}
    用例编号: {{test_case_id}}
    操作步骤:
        {%- for step in steps %}
        {{step}}
        {%- endfor %}
    预期结果:
        {%-for expect in expects %}
        {{expect}}
        {%- endfor %}
    """

    def setup(self):
        self.driver = gbl.driver
        self.data = gbl.data

    def teardown(self):
        pass

    @allure.story("{{story}}")
    @allure.title("{{title}}")
    {%- for mark in marks %}
    @pytest.mark.{{mark}}
    {%- endfor %}
    @pytest.mark.skip(reason="no way of currently testing this")
    def {{test_case_id}}(self):
        {% for step in steps -%}
        with allure.step("步骤：{{step}}"):
            pass

        {% endfor -%}
        {% for expect in expects -%}
        with allure.step("预期：{{expect}}"):
            pass

        {% endfor -%}